local zhangshi = fk.CreateSkill {
  name = "lingling__zhangshi",
}

Fk:loadTranslationTable {
  ["lingling__zhangshi"] = "仗势",
  [":lingling__zhangshi"] = "当一名角色回复体力时，若你手牌不为唯一最多，你可以摸一张牌。",
}

zhangshi:addEffect(fk.HpRecover, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(zhangshi.name) and table.find(player.room:getOtherPlayers(player, false), function(p)
      return player:getHandcardNum() <= p:getHandcardNum()
    end)
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, zhangshi.name)
  end,
})

return zhangshi
